package com.whminwei.edu.api.dc.dto.fspn.other;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author zhangjq
 * @since 2024-08-12
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DcScienceFspn {

    private List<DcScience> sciences;

    private List<String> deleted;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class DcScience {
        private String id;
        /**
         * 科研项目名称
         */
        private String name;
        /**
         * 科研项目编号
         */
        private String no;
        /**
         * 科研项目类型
         */
        private String type;
        /**
         * 科研项目级别
         */
        private String level;
        /**
         * 科研项目性质
         */
        private String kind;
        /**
         * 科研项目分类
         */
        private String classify;
        /**
         * 立项单位名称
         */
        private String unit;
        /**
         * 立项日期
         */
        private long startTime;
        /**
         * 结题日期
         */
        private long endTime;
        /**
         * 学科领域
         */
        private String speciality;
        /**
         * 到账金额
         */
        private String money;
        /**
         * 参与人员
         */
        private List<DcParticipant> participants;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class DcParticipant {
        /**
         * 教职工ID
         */
        private String staffId;
        /**
         * 合作情况
         */
        private String sort;
    }
}
